﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

namespace ChatBox.Utilities
{
  public class NotificationObject : INotifyPropertyChanged
  {
    #region Protected Methods

    protected virtual void OnPropertyChanged( String propertyName )
    {
      PropertyChangedEventHandler handler = this.PropertyChanged;

      if ( handler != null )
      {
        handler( this, new PropertyChangedEventArgs( propertyName ) );
      }
    }

    #endregion

    #region Events

    public event PropertyChangedEventHandler PropertyChanged;

    #endregion
  }
}
